import Vue from "vue";
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const layoutRoutes = [
];

const routes = [
  {
    path: '/',
    redirect: '/HelloWorld',
  },
  {
    path: '/demo',
    name: 'demo',
    component: resolve => require(['../view/demo.vue'], resolve),
  },
  {
    path: '/HelloWorld',
    name: 'HelloWorld',
    component: resolve => require(['../view/HelloWorld.vue'], resolve),
  },
];

export default new VueRouter({
  routes,
  mode: 'hash',
})
